<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>QVibra: QVibra Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javaScript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- Generated by Doxygen 1.7.1 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'Search');
--></script>
<div class="navigation" id="top">
  <div class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li id="searchli">
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
      <li><a href="classes.html"><span>Class&nbsp;Index</span></a></li>
      <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-slots">Public Slots</a> &#124;
<a href="#signals">Signals</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-attribs">Static Public Attributes</a> &#124;
<a href="#properties">Properties</a> &#124;
<a href="#friends">Friends</a>  </div>
  <div class="headertitle">
<h1>QVibra Class Reference</h1>  </div>
</div>
<div class="contents">
<!-- doxytag: class="QVibra" -->
<p><a href="class_q_vibra-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><b>Error</b> { <br/>
&nbsp;&nbsp;<b>NoError</b> =  0, 
<b>OutOfMemoryError</b>, 
<b>ArgumentError</b>, 
<b>VibraInUseError</b>, 
<br/>
&nbsp;&nbsp;<b>HardwareError</b>, 
<b>TimeOutError</b>, 
<b>VibraLockedError</b>, 
<b>AccessDeniedError</b>, 
<br/>
&nbsp;&nbsp;<b>UnknownError</b> =  -1, 
<b>NotCreated</b>
<br/>
 }</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><b>Status</b> { <b>StatusNotAllowed</b> =  0, 
<b>StatusOff</b>, 
<b>StatusOn</b>
 }</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><b>EngineRotation</b> { <b>Positive</b>, 
<b>Negative</b>
 }</td></tr>
<tr><td colspan="2"><h2><a name="pub-slots"></a>
Public Slots</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_vibra.html#a974ab884c3770bec5cae0e32ed3fe57d">start</a> (int duration=InfiniteDuration, int intensity=MaxIntensity)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Start vibration.  <a href="#a974ab884c3770bec5cae0e32ed3fe57d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4473445b9f1a62be701504d008b84c19"></a><!-- doxytag: member="QVibra::stop" ref="a4473445b9f1a62be701504d008b84c19" args="()" -->
bool&nbsp;</td><td class="memItemRight" valign="bottom"><b>stop</b> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a422f8ea11409112423970ce5f5d33988"></a><!-- doxytag: member="QVibra::reserve" ref="a422f8ea11409112423970ce5f5d33988" args="()" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><b>reserve</b> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac05a93cd6428ba8d7f492e5955167aac"></a><!-- doxytag: member="QVibra::release" ref="ac05a93cd6428ba8d7f492e5955167aac" args="()" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><b>release</b> ()</td></tr>
<tr><td colspan="2"><h2><a name="signals"></a>
Signals</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a06acb545a2f32b4caf1ec6fddea61453"></a><!-- doxytag: member="QVibra::statusChanged" ref="a06acb545a2f32b4caf1ec6fddea61453" args="(QVibra::Status status)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><b>statusChanged</b> (QVibra::Status status)</td></tr>
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a79a2265d2a16f70c306774b0bf44c875"></a><!-- doxytag: member="QVibra::QVibra" ref="a79a2265d2a16f70c306774b0bf44c875" args="(QObject *parent=0)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><b>QVibra</b> (QObject *parent=0)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a89a2aabf77081dd35ca108309ab748b4"></a><!-- doxytag: member="QVibra::currentStatus" ref="a89a2aabf77081dd35ca108309ab748b4" args="() const " -->
Q_INVOKABLE QVibra::Status&nbsp;</td><td class="memItemRight" valign="bottom"><b>currentStatus</b> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a67d604918a0083e7dd7eca981bb440a5"></a><!-- doxytag: member="QVibra::error" ref="a67d604918a0083e7dd7eca981bb440a5" args="() const " -->
Q_INVOKABLE QVibra::Error&nbsp;</td><td class="memItemRight" valign="bottom"><b>error</b> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8afa0f08daa0e9f4991953708df83e87"></a><!-- doxytag: member="QVibra::errorString" ref="a8afa0f08daa0e9f4991953708df83e87" args="() const " -->
Q_INVOKABLE QString&nbsp;</td><td class="memItemRight" valign="bottom"><b>errorString</b> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9d0cf186637ae96b5924dbeef0cde854"></a><!-- doxytag: member="QVibra::rotation" ref="a9d0cf186637ae96b5924dbeef0cde854" args="()" -->
QVibra::EngineRotation&nbsp;</td><td class="memItemRight" valign="bottom"><b>rotation</b> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a048a94dece0ebfb02d42e08b736004cd"></a><!-- doxytag: member="QVibra::setRotation" ref="a048a94dece0ebfb02d42e08b736004cd" args="(EngineRotation)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><b>setRotation</b> (EngineRotation)</td></tr>
<tr><td colspan="2"><h2><a name="pub-static-attribs"></a>
Static Public Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac89f6152a2d762b1b90e875a9456a429"></a><!-- doxytag: member="QVibra::InfiniteDuration" ref="ac89f6152a2d762b1b90e875a9456a429" args="" -->
static const int&nbsp;</td><td class="memItemRight" valign="bottom"><b>InfiniteDuration</b> = 0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad9d8c1d6adf8ff2171439d720adbc6ea"></a><!-- doxytag: member="QVibra::MaxIntensity" ref="ad9d8c1d6adf8ff2171439d720adbc6ea" args="" -->
static const int&nbsp;</td><td class="memItemRight" valign="bottom"><b>MaxIntensity</b> = 100</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1b214dd133883cb93fac8e2ceff40d30"></a><!-- doxytag: member="QVibra::DefaultIntensity" ref="a1b214dd133883cb93fac8e2ceff40d30" args="" -->
static const int&nbsp;</td><td class="memItemRight" valign="bottom"><b>DefaultIntensity</b> = 100</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="acb48c828d179a69f383686a4e547a6d3"></a><!-- doxytag: member="QVibra::MinIntensity" ref="acb48c828d179a69f383686a4e547a6d3" args="" -->
static const int&nbsp;</td><td class="memItemRight" valign="bottom"><b>MinIntensity</b> = 0</td></tr>
<tr><td colspan="2"><h2><a name="properties"></a>
Properties</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="add054177085c290bc499af908a0a4a8a"></a><!-- doxytag: member="QVibra::rotation" ref="add054177085c290bc499af908a0a4a8a" args="" -->
EngineRotation&nbsp;</td><td class="memItemRight" valign="bottom"><b>rotation</b></td></tr>
<tr><td colspan="2"><h2><a name="friends"></a>
Friends</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4f092e27612f47c981f61a50bfecd877"></a><!-- doxytag: member="QVibra::QVibraPrivate" ref="a4f092e27612f47c981f61a50bfecd877" args="" -->
class&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_vibra.html#a4f092e27612f47c981f61a50bfecd877">QVibraPrivate</a></td></tr>
</table>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a974ab884c3770bec5cae0e32ed3fe57d"></a><!-- doxytag: member="QVibra::start" ref="a974ab884c3770bec5cae0e32ed3fe57d" args="(int duration=InfiniteDuration, int intensity=MaxIntensity)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool QVibra::start </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>duration</em> = <code>InfiniteDuration</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>intensity</em> = <code>MaxIntensity</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [slot]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Start vibration. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>duration,Duration</em>&nbsp;</td><td>of the vibration measured in milliseconds. A value of InfiniteDuration specifies that the vibration should continue indefinetely and should be stopped with a call to stop. Duration usually has device specific maximum value </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>intensity,Intensity</em>&nbsp;</td><td>of the vibra in decimal is MinIntensity to MaxIntensity, which shows the percentage of the vibra motor full rotation speed. When intensity is negative, the vibra motor rotates in the negative direction. When intensity is positive, the vibra motor rotates in the positive direction. Value 0 stops the vibra. NOTE: The device might have hardware-imposed limits on supported vibra intensity values, so actual effect might vary between different hardware. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="qvibra_8h_source.html">qvibra.h</a></li>
<li>qvibra.cpp</li>
</ul>
</div>
<!--- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&nbsp;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&nbsp;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&nbsp;</span>Functions</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<hr class="footer"/><address class="footer"><small>Generated on Fri Mar 30 2012 16:57:25 for QVibra by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.1 </small></address>
</body>
</html>
